<?php
if ($view->result == 1)
{
    echo '<div class="successBox ">';
    echo '<div class="successBoxTop">&nbsp;';
    echo '</div>';
    echo '<div class="msgBoxContent successIcon">';
    echo 'El evento fue creado';
    echo '</div>';
    echo '</div>';
    ?>
    <div>
        <form method="post" action="<?php echo $view->url(array('module' => 'EventAdmin', 'controller' => 'Events', 'action' => 'addImgPrincipal', 'event' => $view->idEvent)); ?>" enctype="multipart/form-data">
            <table>
                <tr>
                    <td><label>Imagen de Portada :</label></td>
                    <td><input type="file" id="photoPrincipal" name="photoPrincipal" size="20"/></td>
                </tr>
                <tr>
                    <td><input type="submit" value="subir" /></td>
                </tr>
            </table>
        </form>
    </div>
    <?php
}
else
{
    if ($view->result === false)
    {
        foreach ($view->errors as $error)
        {
            echo '<div class="errorBox ">';
            echo '<div class="errorBoxTop">&nbsp;';
            echo '</div>';
            echo '<div class="msgBoxContent errorIcon">';
            echo '<p>' . $error . '</p>';
            echo '</div>';
            echo '</div>';
        }
    }
}